<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
 <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
 <title>Document</title>
<script src="../vue.js"></script>
<style>
    [v-cloak] {
        display:none;
    }
</style>
</head>

<body>
<div id="app">

 <!-- 
    v-cloak指令保持在元素上,直到关联实例结束编译.
    和css规则如[v-clock] {display:none} 一起用时,这个指令可以隐藏未编译的Mustache 标签直到实例准备完毕


  -->
  <p v-cloak>{{count}}</p>
  </div>
 <script>
 Vue.config.productionTip=false;

 const vm =new Vue({
    data() {
        return {
            count:0,
        }
    }
 });
  setTimeout(()=>{
    vm.$mount("#app");
  },500);
</script>
</body>

</html>